package com.atguigu.registration.user.client;

import com.atguigu.registration.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/5/10 9:49 PM
 */
@FeignClient(value = "service-user")
@Repository
public interface PatientFeignClient {

    /** 获取就诊人信息，根据id获取 */
    @GetMapping("/api/user/patient/inner/get/{id}")
    public Patient getPatientOrder(@PathVariable("id") Long id);

}
